<!-- 服装字典类型 -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
		<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
			<!DOCTYPE html>
			<html>

			<head>
				<meta charset="utf-8">
				<script type="text/javascript" src="${pageContext.request.contextPath}/js/common/jquery-2.0.0.min.js"></script>
				<link rel='stylesheet prefetch' href='${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css'>
				<link rel='stylesheet prefetch' href='${pageContext.request.contextPath}/css/admin/admin_info.css'>
				<script type="text/javascript" src="${pageContext.request.contextPath}/js/admin/admin_info.js"></script>
			</head>

			<body>
				<div class="container-fluid" style="padding: 0 !important;">
					<div class="row-fluid">
						<div class="span12">
							<div id="myTabContent" class="tab-content">
								<div class="tab-pane fade in active kissy" id="design">
									<div class="container-fluid">
										<div class="row-fluid">
											<div class="span12">
												<a href="javaScript:;" class="addHref">增加大类</a>
												<table class="table" style="font-size: 10px;">
													<thead>
														<tr>
															<th>序号</th>
															<th>CODE</th>
															<th>名称</th>
															<th>关联中类</th>
															<th>增加中类</th>
															<th>关联小类</th>
															<th>增加小类</th>
														</tr>
													</thead>
													<tbody>
														<c:forEach items="${clothingTypes}" var="data">
															<tr>
															<c:if test="${data.parent_code eq '' }">
																<td>${data.id}</td>
																<td>${data.parent_code}</td>
																<td class="dl">${data.name}</td>
															</c:if>
																
																<td>
																    <!--中类-->
																	<select class="zl">
																		<c:forEach items="${clothingTypes}" var="middle">
																				<c:if test="${middle.parent_code eq data.code}">
																						<option>${middle.code} &nbsp; ${middle.name }</option>
																				</c:if>
																			
																		</c:forEach>
																	</select>
																</td>
																<td><a href="javaScript:;" class="a">+</a></td>
																<td>
																	<select class="xl">
																		<option value="-1">显示选中关联中类的小类</option>
																		<c:forEach items="${clothingTypes}" var="small">
																			<c:if test="${small.parent_code eq middle.code }">
																				<option>${small.code} &nbsp; ${small.name }</option>							
																			</c:if>
																			
																		</c:forEach>
																	</select>
																</td>
																<td><a href="javaScript:;" class="b">+</a></td>
															</tr>
														</c:forEach>
													</tbody>
												</table>

											</div>
										</div>
									</div>
								</div>
								<!--增加字典类型弹出框-->
								<div class="hide-body-add">
									<div class="close-window-add">
										<!-- 关闭窗口，也就是触发关闭div的事件-->
										<a href="javascript:;" title="关闭" class="close-add">×</a>
										<h5 style="margin-left: 11px;">增加大类</h5>
										<span class="dicTypeUrl" style="display:none">/clothingType/add_clothingType.do</span>
										<span class="reloadUrl" style="display:none">/clothingType/admin_clothingType.do</span>
									</div>
									<!-- 中间主体显示div 可以增加其他的样式-->
									<div class="login-body dform">
										<form class="signin" name="loginform" action="" method="post">
											<ol>
												<li>
													<label style="float: left;margin-left: 0px;width: 40px;">CODE:</label>
													<input type="text" style="margin: 16PX;" />
												</li>
												<li>
													<label style="float: left;margin-left: 0px;width: 40px;">名称:</label>
													<input class="dlname" type="text" style="margin: 16PX;" />
												</li>
												<li style="width: 55px;margin-left: 118px;">
													<input class="btn btn-primary addbtn" type="button" name="submit" value="确定 " />
												</li>
											</ol>
										</form>
									</div>
								</div>
								<div class="body-add"></div>
								<!--增加字典类型弹出框结束-->
								<!--增加中类弹出框-->
								<div class="hide-body-a" style="height: 212px;">
									<div class="close-window-a">
										<!-- 关闭窗口，也就是触发关闭div的事件-->
										<a href="javascript:;" title="关闭" class="close-a">×</a>
										<h5 style="margin-left: 11px;">增加中类</h5>
										<span class="dicUrl" style="display:none">/clothingType/add_clothingType.do</span>
									</div>
									<!-- 中间主体显示div 可以增加其他的样式-->
									<div class="login-body dform">
										<form class="signin" name="loginform" action="" method="post">
											<ol>
												<li>
													<label style="float: left;margin-left: 0px;width: 40px;">CODE:</label>
													<input class="zlcode" type="text" style="margin: 16PX;" />
												</li>
												<li>
													<label style="float: left;margin-left: 0px;width: 40px;">名称:</label>
													<input class="zlname" type="text" style="margin: 16PX;" />
												</li>
												<li style="width: 55px;margin-left: 118px;">
													<input class="btn btn-primary abtn" type="button" name="submit" value="确定 " />
												</li>
											</ol>
										</form>
									</div>
								</div>
								<div class="body-a"></div>
								<!--增加中类弹出框结束-->
								<!--增加小类弹出框-->
								<div class="hide-body-b" style="height: 276px;width: 409px;">
									<div class="close-window-b">
										<!-- 关闭窗口，也就是触发关闭div的事件-->
										<a href="javascript:;" title="关闭" class="close-b">×</a>
										<h5 style="margin-left: 11px;">增加小类数据</h5>
									</div>
									<!-- 中间主体显示div 可以增加其他的样式-->
									<div class="login-body dform">
										<form class="signin" name="loginform" action="" method="post">
											<ol>
												<li>
													<label style="float: left;margin-left: 0px;width: 69px;">关联中类:</label>
													<select style="margin: 16PX;" />
													<c:forEach items="${clothingTypes}" var="data">
														<option>1</option>
													</c:forEach>
													</select>
												</li>
												<li>
													<label style="float: left;margin-left: 29px;width: 40px;">CODE:</label>
													<input class="xlcode" type="text" style="margin: 16PX;" />
												</li>
												<li>
													<label style="float: left;margin-left: 29px;width: 40px;">名称:</label>
													<input class="xlname" type="text" style="margin: 16PX;" />
												</li>
												<li style="width: 55px;margin-left: 118px;">
													<input class="btn btn-primary bbtn" type="button" name="submit" value="确定 " />
												</li>
											</ol>
										</form>
									</div>
								</div>
								<div class="body-b"></div>
								<!--增加小类弹出框结束-->
								<!--分页-->
								<div class="paging">
									<div style="display: none;">
										<span class="pages">${data.property.pageCount}</span>
										<!--页数-->
										<span class="pageIndex">${data.property.pageIndex}</span>
										<!--当前页码-->
										<span class="pagesize">3</span>
										<!--每页记录数-->
										<span class="hasNext">${data.property.hasNext}</span>
										<!--是否有下一页(boolean)-->
										<span class="userId">designer_id=19</span>
										<!--用户ID-->
										<span class="commonUrl">${pageContext.request.contextPath}</span>
										<!--绝对路径-->
									</div>
									<div class="showPaging">
										<a class="prev" href="${pageContext.request.contextPath}/demand/getSpecial.do?designer_id=${designer_id }&pageindex=${json.property.pageIndex-1 }&pagesize=4">
					上一页</a>
										<select class="pageNum">
											<option value="0">请选择跳转的页数</option>
											<option value="1">第1页</option>
										</select>
										<a class="next" href="${pageContext.request.contextPath}/demand/getSpecial.do?designer_id=${designer_id }&pageindex=${json.property.pageIndex+1 }&pagesize=4">
					下一页</a>
									</div>
								</div>
								<!--分页结束-->
							</div>
						</div>
					</div>
				</div>

			</body>

			</html>